﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200053D RID: 1341
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FightActivityGroup : IMessage<FightActivityGroup>, IMessage, IEquatable<FightActivityGroup>, IDeepCloneable<FightActivityGroup>, IBufferMessage
	{
		// Token: 0x1700114D RID: 4429
		// (get) Token: 0x06003C7A RID: 15482 RVA: 0x000A69E3 File Offset: 0x000A4BE3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FightActivityGroup> Parser
		{
			get
			{
				return FightActivityGroup._parser;
			}
		}

		// Token: 0x1700114E RID: 4430
		// (get) Token: 0x06003C7B RID: 15483 RVA: 0x000A69EA File Offset: 0x000A4BEA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FightActivityGroupReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700114F RID: 4431
		// (get) Token: 0x06003C7C RID: 15484 RVA: 0x000A69FC File Offset: 0x000A4BFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FightActivityGroup.Descriptor;
			}
		}

		// Token: 0x06003C7D RID: 15485 RVA: 0x000A6A03 File Offset: 0x000A4C03
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightActivityGroup()
		{
		}

		// Token: 0x06003C7E RID: 15486 RVA: 0x000A6A18 File Offset: 0x000A4C18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightActivityGroup(FightActivityGroup other) : this()
		{
			this.passedMaxDifficultyLevel_ = other.passedMaxDifficultyLevel_;
			this.endlessMaxWave_ = other.endlessMaxWave_;
			this.takenDifficultyLevelRewardList_ = other.takenDifficultyLevelRewardList_.Clone();
			this.groupId_ = other.groupId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003C7F RID: 15487 RVA: 0x000A6A71 File Offset: 0x000A4C71
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightActivityGroup Clone()
		{
			return new FightActivityGroup(this);
		}

		// Token: 0x17001150 RID: 4432
		// (get) Token: 0x06003C80 RID: 15488 RVA: 0x000A6A79 File Offset: 0x000A4C79
		// (set) Token: 0x06003C81 RID: 15489 RVA: 0x000A6A81 File Offset: 0x000A4C81
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PassedMaxDifficultyLevel
		{
			get
			{
				return this.passedMaxDifficultyLevel_;
			}
			set
			{
				this.passedMaxDifficultyLevel_ = value;
			}
		}

		// Token: 0x17001151 RID: 4433
		// (get) Token: 0x06003C82 RID: 15490 RVA: 0x000A6A8A File Offset: 0x000A4C8A
		// (set) Token: 0x06003C83 RID: 15491 RVA: 0x000A6A92 File Offset: 0x000A4C92
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EndlessMaxWave
		{
			get
			{
				return this.endlessMaxWave_;
			}
			set
			{
				this.endlessMaxWave_ = value;
			}
		}

		// Token: 0x17001152 RID: 4434
		// (get) Token: 0x06003C84 RID: 15492 RVA: 0x000A6A9B File Offset: 0x000A4C9B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> TakenDifficultyLevelRewardList
		{
			get
			{
				return this.takenDifficultyLevelRewardList_;
			}
		}

		// Token: 0x17001153 RID: 4435
		// (get) Token: 0x06003C85 RID: 15493 RVA: 0x000A6AA3 File Offset: 0x000A4CA3
		// (set) Token: 0x06003C86 RID: 15494 RVA: 0x000A6AAB File Offset: 0x000A4CAB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x06003C87 RID: 15495 RVA: 0x000A6AB4 File Offset: 0x000A4CB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FightActivityGroup);
		}

		// Token: 0x06003C88 RID: 15496 RVA: 0x000A6AC4 File Offset: 0x000A4CC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FightActivityGroup other)
		{
			return other != null && (other == this || (this.PassedMaxDifficultyLevel == other.PassedMaxDifficultyLevel && this.EndlessMaxWave == other.EndlessMaxWave && this.takenDifficultyLevelRewardList_.Equals(other.takenDifficultyLevelRewardList_) && this.GroupId == other.GroupId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003C89 RID: 15497 RVA: 0x000A6B34 File Offset: 0x000A4D34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.PassedMaxDifficultyLevel != 0U)
			{
				num ^= this.PassedMaxDifficultyLevel.GetHashCode();
			}
			if (this.EndlessMaxWave != 0U)
			{
				num ^= this.EndlessMaxWave.GetHashCode();
			}
			num ^= this.takenDifficultyLevelRewardList_.GetHashCode();
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003C8A RID: 15498 RVA: 0x000A6BB3 File Offset: 0x000A4DB3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003C8B RID: 15499 RVA: 0x000A6BBB File Offset: 0x000A4DBB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003C8C RID: 15500 RVA: 0x000A6BC4 File Offset: 0x000A4DC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EndlessMaxWave != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.EndlessMaxWave);
			}
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.GroupId);
			}
			this.takenDifficultyLevelRewardList_.WriteTo(ref output, FightActivityGroup._repeated_takenDifficultyLevelRewardList_codec);
			if (this.PassedMaxDifficultyLevel != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.PassedMaxDifficultyLevel);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003C8D RID: 15501 RVA: 0x000A6C4C File Offset: 0x000A4E4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.PassedMaxDifficultyLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PassedMaxDifficultyLevel);
			}
			if (this.EndlessMaxWave != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EndlessMaxWave);
			}
			num += this.takenDifficultyLevelRewardList_.CalculateSize(FightActivityGroup._repeated_takenDifficultyLevelRewardList_codec);
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003C8E RID: 15502 RVA: 0x000A6CD0 File Offset: 0x000A4ED0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FightActivityGroup other)
		{
			if (other == null)
			{
				return;
			}
			if (other.PassedMaxDifficultyLevel != 0U)
			{
				this.PassedMaxDifficultyLevel = other.PassedMaxDifficultyLevel;
			}
			if (other.EndlessMaxWave != 0U)
			{
				this.EndlessMaxWave = other.EndlessMaxWave;
			}
			this.takenDifficultyLevelRewardList_.Add(other.takenDifficultyLevelRewardList_);
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003C8F RID: 15503 RVA: 0x000A6D45 File Offset: 0x000A4F45
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003C90 RID: 15504 RVA: 0x000A6D50 File Offset: 0x000A4F50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 64U)
				{
					if (num == 32U)
					{
						this.EndlessMaxWave = input.ReadUInt32();
						continue;
					}
					if (num == 64U)
					{
						this.GroupId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 88U || num == 90U)
					{
						this.takenDifficultyLevelRewardList_.AddEntriesFrom(ref input, FightActivityGroup._repeated_takenDifficultyLevelRewardList_codec);
						continue;
					}
					if (num == 120U)
					{
						this.PassedMaxDifficultyLevel = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040017FA RID: 6138
		private static readonly MessageParser<FightActivityGroup> _parser = new MessageParser<FightActivityGroup>(() => new FightActivityGroup());

		// Token: 0x040017FB RID: 6139
		private UnknownFieldSet _unknownFields;

		// Token: 0x040017FC RID: 6140
		public const int PassedMaxDifficultyLevelFieldNumber = 15;

		// Token: 0x040017FD RID: 6141
		private uint passedMaxDifficultyLevel_;

		// Token: 0x040017FE RID: 6142
		public const int EndlessMaxWaveFieldNumber = 4;

		// Token: 0x040017FF RID: 6143
		private uint endlessMaxWave_;

		// Token: 0x04001800 RID: 6144
		public const int TakenDifficultyLevelRewardListFieldNumber = 11;

		// Token: 0x04001801 RID: 6145
		private static readonly FieldCodec<uint> _repeated_takenDifficultyLevelRewardList_codec = FieldCodec.ForUInt32(90U);

		// Token: 0x04001802 RID: 6146
		private readonly RepeatedField<uint> takenDifficultyLevelRewardList_ = new RepeatedField<uint>();

		// Token: 0x04001803 RID: 6147
		public const int GroupIdFieldNumber = 8;

		// Token: 0x04001804 RID: 6148
		private uint groupId_;
	}
}
